package com.google.code.csf.locators.jaxws;

import com.google.code.csf.locators.JndiObjectLocator;

public class JaxWsServiceRefServiceLocator extends AbstractJaxWsServiceLocator {
    private final JndiObjectLocator jndiObjectLocator = new JndiObjectLocator();

    public final void setJndiName(String jndiName) {
        jndiObjectLocator.setJndiName(jndiName);
    }

    public final void setExpectedType(Class expectedType) {
        jndiObjectLocator.setExpectedType(expectedType);
    }

    protected Object createJaxService() throws Throwable {
        return jndiObjectLocator.lookup();
    }
}
